import React from 'react';
import Home from './view/Home';
import { Route, Switch, Redirect } from 'react-router-dom'
import Not from './view/Notfound'
import Login from './view/Login'
const App = () => {
  return (
    <>
      <Switch>
        <Route path="/home" component={Home} />
        <Route path="/login" component={Login} />
        <Redirect exact from="/" to="/home" />
        <Route component={Not} />
      </Switch>
    </>
  );
}

export default App;

